package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.query.StrategyQueryObject;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface LikeStrategyCommentMapper {

    Integer queryLikeCount(Long strategyCommentId);

    Integer queryIfexist(@Param("strategyCommentId") Long strategyCommentId, @Param("userId") Long userId);

    void insert(@Param("strategyCommentId") Long strategyCommentId, @Param("userId") Long userId, @Param("createTime") Date createTime);

    void deleteByPrimaryKey(@Param("strategyCommentId") Long strategyCommentId, @Param("userId") Long userId);

    List<Map> queryForLikeMe(TravelQueryObject qo);
}